package com.ncdnapp.dao.po;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 企业端用户信息(User)实体类
 *
 * @author chenbin
 * @since 2025-01-23 17:10:33
 */
@Data
@Accessors(chain = true)
@Table("user")
public class UserPO implements Serializable {
    @Id(keyType = KeyType.Auto)
    private Long id;
    /**
     * 类型(1:超管,2:普通用户)
     */
    @Column("type")
    private Integer type;
    @Column("account")
    private String account;
    @Column("password")
    private String password;
    /**
     * 名称
     */
    @Column("name")
    private String name;
    @Column("phone")
    private String phone;
    /**
     * 头像文件id
     */
    @Column("head_img_file_id")
    private Long headImgFileId;
    @Column("state")
    private Integer state;
    @Column("summary")
    private String summary;
    @Column("login_locked")
    private Integer loginLocked;
    @Column("login_lock_time")
    private LocalDateTime loginLockTime;
    @Column("notice_state")
    private Integer noticeState;
    @Column("yn")
    private Integer yn;
    /**
     * 创建时间
     */
    @Column("create_time")
    private LocalDateTime createTime;
    /**
     * 创建人id
     */
    @Column("create_user_id")
    private Long createUserId;
    /**
     * 更新时间
     */
    @Column("update_time")
    private LocalDateTime updateTime;
    /**
     * 更新人id
     */
    @Column("update_user_id")
    private Long updateUserId;
    /**
     * 删除状态(0:已删除,1:正常)
     */
    @Column("push_client_id")
    private String pushClientId;
}

